﻿@using GdHotel.Data
@model IEnumerable<RoomType>

<ul class="list">
    @foreach (var roomType in Model)
    {
        if (roomType.Rooms != null && roomType.Rooms.Count() > 0)
        {
            <li><a href="@Url.Action("Show", "Rooms", new {id = roomType.Rooms.FirstOrDefault().Id})">@roomType.Title</a></li>
        }
    }
</ul>